
const state = {
  title: 'DataGeek',
  apiBase: 'http://datageek.top/api',
  // apiBase: 'http://localhost:8000/api',
  me: 'Alex Zhang',
  user: null,
  siteMap: [
    { title: 'Home', icon: 'home', to: '/home' },
    { title: 'Tech & Fun', icon: 'keyboard', to: '/notes' },
    { title: 'Photography & Fun', icon: 'camera_alt', to: '/photo' },
    // { title: 'Admin', icon: 'tv', to: '/manage' },
    { title: 'B&PB Report', icon: 'apps', to: '/bpb' }
  ],
  bpb: {
    menu: [
      {title: 'Overview', to: '/bpb/overview'},
      {title: 'CLG Report', to: '/bpb/clg'},
      {title: 'Call', to: '/bpb/call'}
    ]
  }
}

const getters = {
  siteTitle: state => {
    return state.title
  }
}

const mutations = {
  setTitle (state, payload) {
    state.title = payload
  }
}

const actions = {
}

export default {
  state,
  getters,
  mutations,
  actions
}
